project(ZainGL)

if (MINGW)
    set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/MINGW/)
    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/MINGW/)
    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/MINGW/)
endif (MINGW)
if (UNIX)
    set(CMAKE_CXX_COMPILER /D/Linux/clang+llvm-4.0.0-x86_64-linux-gnu-debian8/bin/clang++)
    set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY /D/Linux/lib/)
    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY /D/Linux/lib/)
    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/LINUX/)
endif (UNIX)

include_directories(../ZainTL)

add_library(ZainGL STATIC
        Material.cpp Material.h
        Model.cpp Model.h
        Object.cpp Object.h
        ShareHeaders.cpp ShareHeaders.h
        ZainGL.cpp ZainGL.h
        Sky.cpp Sky.h Light.cpp Light.h DirectionalLight.cpp DirectionalLight.h EntityObject.cpp EntityObject.h Camera.cpp Camera.h SkyMaterial.cpp SkyMaterial.h ShadowMaterial.cpp ShadowMaterial.h)

set_target_properties(ZainGL PROPERTIES LINKER_LANGUAGE CXX)